QT       += core gui sql network

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++17

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    DbManager.cpp \
    component/BlogListWidget.cpp \
    component/BlogTextEdit.cpp \
    component/CommentListWidget.cpp \
    component/EditProfileDialog.cpp \
    component/EditSafeDialog.cpp \
    component/InputDialog.cpp \
    component/PreviewDialog.cpp \
    component/item/AvatarLabel.cpp \
    component/item/BlogItemWidget.cpp \
    component/item/CommentItemWidget.cpp \
    dataModel/BlogDetail.cpp \
    dataModel/BlogList.cpp \
    dataModel/BlogPreview.cpp \
    dataModel/Comment.cpp \
    main.cpp \
    MainWindow.cpp \
    network/DataAccess.cpp \
    network/PptpClient.cpp \
    network/PptpMessage.cpp \
    network/PptpSocket.cpp \
    page/BanPage.cpp \
    page/BlogDetailsPage.cpp \
    page/CreatePage.cpp \
    page/HomePage.cpp \
    page/LoginPage.cpp \
    page/MyPage.cpp \
    page/MyPage/UserProfileHeader.cpp \
    page/RegisterPage.cpp

HEADERS += \
    DbManager.h \
    MainWindow.h \
    component/BlogListWidget.h \
    component/BlogTextEdit.h \
    component/CommentListWidget.h \
    component/EditProfileDialog.h \
    component/EditSafeDialog.h \
    component/InputDialog.h \
    component/PreviewDialog.h \
    component/item/AvatarLabel.h \
    component/item/BlogItemWidget.h \
    component/item/CommentItemWidget.h \
    dataModel/BlogDetail.h \
    dataModel/BlogList.h \
    dataModel/BlogPreview.h \
    dataModel/Comment.h \
    network/DataAccess.h \
    network/PptpClient.h \
    network/PptpMessage.h \
    network/PptpSocket.h \
    page/BanPage.h \
    page/BlogDetailsPage.h \
    page/CreatePage.h \
    page/HomePage.h \
    page/LoginPage.h \
    page/MyPage.h \
    page/MyPage/UserProfileHeader.h \
    page/RegisterPage.h

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

RESOURCES += \
    resources.qrc
